<?php
namespace app\common\model;


use think\Model;

class GirlImg extends Model
{

    public function getList($map = [])
    {
        return $this->alias('a')
            ->join('users u','u.user_id = a.user_id','LEFT')
            ->join('user_extend e','e.user_id = a.user_id','LEFT')
            ->where($map)
            ->order('a.id desc')
            ->field('a.*,u.nick_name,u.header_img,u.sex,e.register_name')
            ->paginate('',false,['query'=>request()->param()]);
    }




}